package ordered_table


type MyKey struct {
	Value int
}

func (m *MyKey) CompareTo(other CompareAble) int {
	return m.GetValue() - other.GetValue()
}

func (m *MyKey) GetValue() int {
	return m.Value
}

func NewKey(value int) *MyKey {
	return &MyKey{
		Value: value,
	}
}
